package com.ruoyi.web.controller.admin;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.dto.BdmRoyaltyRecordDto;
import com.ruoyi.system.domain.vo.BdmRoyaltyRecordVo;
import com.ruoyi.system.service.IBdmRoyaltyRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 分销提成记录Controller
 *
 * @author ruoyi
 * @date 2024-12-09
 */
@Api(tags = "后台-分销提成记录")
@RestController
@RequestMapping("/admin/record")
public class BdmRoyaltyRecordController extends BaseController {

    @Autowired
    private IBdmRoyaltyRecordService bdmRoyaltyRecordService;

    @ApiOperation(value = "获取分销提成记录列表")
    @GetMapping("/getRoyaltyRecordPage")
    public TableDataInfo getRoyaltyRecordPage(BdmRoyaltyRecordDto dto) {
        startPage();
        List<BdmRoyaltyRecordVo> list = bdmRoyaltyRecordService.getRoyaltyRecordPage(dto);
        return getDataTable(list);
    }

}
